<?php
require '../cofd/common.php';
require 'set.php';
require('../setting.php');
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../ast/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../ast/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="../ast/css/public.css" media="all">
	<script type="text/javascript" src="../ast/js/jquery.min.js"></script>
	<script type="text/javascript" src="../ast/js/bootstrap.min.js"></script>
    <style>
        .layui-card {border:1px solid #f2f2f2;border-radius:5px;}
        .icon {margin-right:10px;color:#1aa094;}
        .icon-cray {color:#ffb800!important;}
        .icon-blue {color:#1e9fff!important;}
        .icon-tip {color:#ff5722!important;}
        .layuimini-qiuck-module {text-align:center;margin-top: 10px}
        .layuimini-qiuck-module a i {display:inline-block;width:100%;height:60px;line-height:60px;text-align:center;border-radius:2px;font-size:30px;background-color:#F8F8F8;color:#333;transition:all .3s;-webkit-transition:all .3s;}
        .layuimini-qiuck-module a cite {position:relative;top:2px;display:block;color:#666;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;}
        .welcome-module {width:100%;height:210px;}
        .panel {background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}
        .panel-body {padding:10px}
        .panel-title {margin-top:0;margin-bottom:0;font-size:12px;color:inherit}
        .label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;}
        .layui-red {color:red}
        .main_btn > p {height:40px;}
        .layui-bg-number {background-color:#F8F8F8;}
        .layuimini-notice:hover {background:#f6f6f6;}
        .layuimini-notice {padding:7px 16px;clear:both;font-size:12px !important;cursor:pointer;position:relative;transition:background 0.2s ease-in-out;}
        .layuimini-notice-title,.layuimini-notice-label {
            padding-right: 70px !important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;}
        .layuimini-notice-title {line-height:28px;font-size:14px;}
		.layuimini-notice-extra {position:absolute;top:50%;margin-top:-8px;right:16px;display:inline-block;height:16px;color:#999;}
.welcome-module{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; 
    scrollbar-color: transparent transparent; 
}  

.layui-colla-item {
  border: 1px solid #e2e2e2; 
  border-radius: 4px; 
  margin-bottom: 10px; 
  transition: box-shadow 0.3s ease; 
}


.layui-colla-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}
.layui-colla-title .layui-colla-icon {
  display: none;
}


.layui-colla-title {
  background-color: #f8f8f8; 
  color: #333; 
  font-size: 16px;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #e2e2e2; 
}


.layui-colla-content {
  padding: 15px;
  background-color: #fff; 
  display: none; 
}


.layui-colla-content h2,
.layui-colla-content h3 {
  margin-top: 0;
  color: #333; 
  font-weight: normal; 
}


.layui-colla-content h2 {
  font-size: 16px; 
}


.layui-colla-content h3 {
  font-size: 14px; 
  margin-bottom: 10px; 
}


.layui-colla-content.layui-show {
  display: block;
}
button{
    background-color: #1E9FFF;
    border: 0px solid #1E9FFF;
}
  </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md6">
                        <div style="width: 500px" class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>Info</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                     
                                                        <h5>Version</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins"><?php echo $system_pz['system_version']?></h1>
                                                    </div> 
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                  
                                                        <h5>Update</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">Feovs</h1>
                                                     
  
                                                    </div>
                                                </div>
                                            </div>
                            </div>
                                        <div class="layui-col-xs6">
                                <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                       <div class="panel-title">
                                                       
                                              <h5>作者E-mail</h5>
                                                    </div>
                  <div class="panel-content">
                                                        <h3 class="no-margins">yh-gzs@vip.qq.com</h3>
										
  
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <div style="margin-left:40%;width:570px" class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-credit-card icon icon-blue"></i>注意事项</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10 layuimini-qiuck">
                                      <h2>[by-熙鹤]
                                   <button onclick="xghtmm();">修改后台密码</button>
                                    </h2>
                                     </br>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-col-md12">
                        <div style="width:1100px" class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>推荐栏</div>
                            <div class="layui-card-body">
							<div class="layui-collapse">
  <div class="layui-colla-item">
    <div class="layui-colla-title">反馈-问题</div>
    <div class="layui-colla-content">
    <h2>意见的反馈不在多而在精,除了最基础的条理清晰外能带图就带上图</br>在求解一个问之前不妨先看看是否已有人问过等同的问题 </br>反馈最忌带上个人情绪,平心竟事方人人等恭 
                                    </h2>
                               
    </div>
    <div  class="layui-col-md4">
                <div style="width: 1065px;" class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-bullhorn icon icon-tip"></i>系统公告</div>
                    <div class="layui-card-body layui-text">
					      <div class="layuimini-notice-list">  
					      </div>  
					   </div>
					    </div>
              

            </div>
  </div>
  
                                <div id="echarts-records" style="width: 100%;min-height:500px"></div>	
                            </div>
                        </div>
                    </div>
                </div>
            </div>

          
        </div>
    </div>
</div>
<script src="../ast/layui/layui.js" charset="utf-8"></script>
<script src="../ast/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script>
    layui.use(['layer', 'miniTab','echarts'], function () {
           var $ = layui.jquery,
               layer = layui.layer,
               miniTab = layui.miniTab;
           miniTab.listen();
           $('body').on('click', '.layuimini-notice', function () {
               var title = $(this).children('.layuimini-notice-title').text(),
                   noticeTime = $(this).children('.layuimini-notice-extra').text(),
                   content = $(this).children('.layuimini-notice-content').html();
               var html = '<div style="padding:15px 20px; text-align:justify; line-height: 22px;border-bottom:1px solid #e2e2e2;background-color: #2f4056;color: #ffffff">\n' +
                   '<div style="text-align: center;margin-bottom: 20px;font-weight: bold;border-bottom:1px solid #718fb5;padding-bottom: 5px"><h2 class="text-danger">' + title + '</h2></div>\n' +
                   '<div style="font-size: 1.2em">' + content + '</div>\n' +
                   '</div>\n';
               parent.layer.open({
                   type: 1,
                   title: '公告'+'<span style="float: right;right: 1px;font-size: 12px;color: #b1b3b9;margin-top: 1px">'+noticeTime+'</span>',
                   area: '300px;',
                   shade: 0.8,
                   id: 'layuimini-notice',
                   btn: ['朕已阅'],
                   btnAlign: 'c',
                   moveType: 1,
                   content:html,
                   success: function (layero) {
                       var btn = layero.find('.layui-layer-btn');
                   }
               });
           });
           

          
   
       });

</script>
<script>
function xghtmm(){
    var newpass = prompt("请输入新密码");
    if(newpass == null || newpass == ""){
        alert("密码不能为空");
    }else{
        fetch("./ht/uppass.php?new="+newpass).then(res=>{
            if(res.ok){
                alert("修改成功");
            }else{
                alert("修改失败");
            }
        })
    }
}
    </script>
</body>
</html>
